Trees | Index | Help |
|
---|
Module codecs :: Class StreamWriter |
|
Codec
--+
|
StreamWriter
StreamWriter
Method Summary | |
---|---|
Creates a StreamWriter instance. | |
__enter__(self)
| |
__exit__(self,
type,
value,
tb)
| |
Inherit all other methods from the underlying stream. | |
Flushes and resets the codec buffers used for keeping state. | |
Writes the object's contents encoded to self.stream. | |
Writes the concatenated list of strings to the stream using .write(). | |
Inherited from Codec | |
Decodes the object input and returns a tuple (output object, length consumed). | |
Encodes the object input and returns a tuple (output object, length consumed). |
Method Details |
---|
__init__(self,
stream,
errors='strict')
|
__getattr__(self,
name,
getattr=<built-in function getattr>)
Inherit all other methods from the underlying stream.
|
reset(self)Flushes and resets the codec buffers used for keeping state. Calling this method should ensure that the data on the output is put into a clean state, that allows appending of new fresh data without having to rescan the whole stream to recover state. |
write(self, object)Writes the object's contents encoded to self.stream. |
writelines(self, list)Writes the concatenated list of strings to the stream using .write(). |
Trees | Index | Help |
|
---|
Generated by Epydoc 2.1 on Fri Aug 15 18:58:37 2008 | http://epydoc.sf.net |